<?php
namespace App\Validates\Xcx;

class XmgzController
{
	public function store()
    {
        return [
            'rules' => [
                'name'=>'required',
	    		'phone'=>'required',
	    		'time'=>'required',
	    		'addr'=>'required',
	    		'money'=>'required',
	    		'sum'=>'required',
	    		'work'=>'required',
	    		'desc'=>'required',
	    		'longitude'=>'required',
	    		'latitude'=>'required',
            ],
            'messages' => [
                'name.required'=>'项目名未填',
	    		'phone.required'=>'手机号未填',
	    		'time.required'=>'项目开始时间未填',
	    		'addr.required'=>'地区未填',
	    		'money.required'=>'金钱未填写',
	    		'sum.required'=>'人数未填写',
	    		'work.required'=>'工种未选择',
	    		'desc.required'=>'项目概括未填写',
	    		'longitude.required'=>'经纬度不能为空',
	    		'latitude.required'=>'经纬度不能为空'
            ]
        ];
    }
}